# coding = utf8
from django.db import models


# Create your models here.


class Hosts(models.Model):
    """
    主机模型, 保存主机 ip , 用户, 密码, 秘钥. 加入时间,
    """
    ip = models.CharField(verbose_name='主机ip地址', max_length=20)
    user = models.CharField(verbose_name='登录用户', max_length=20)
    passwd = models.CharField(verbose_name='登录密码', max_length=20)
    key = models.FileField(verbose_name='登录私钥', upload_to='media', null=True, blank=True)

